package com.pai.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * 请假单实体类
 */
public class LeaveTicket {
    private int id;  //主键
    private String leaveNo;  //请假单号
    private int leaveType;  //请假类型 0：事假； 1：病假
    private String reason;  //原因
    @JSONField(format = "yyyy-MM-dd")//避免从数据库取日期的时候 变成时间戳
    private Date starDate;  //开始时间
    @JSONField(format = "yyyy-MM-dd")
    private Date endDate;  //结束时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;  //创建时间
    private int state;  //状态  0：待审核； 1：审核通过； 2：审核未通过
    private String remarks;  //审核备注
    private int studentId;  //申请的学生id
    private String studentName;  //申请的学生姓名
    private int counselorId;  //审核的辅导员id
    private String counselorName;  //审核的辅导员名称
    private int classId;  //班级id
    private String className;  //班级名称

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLeaveNo() {
        return leaveNo;
    }

    public void setLeaveNo(String leaveNo) {
        this.leaveNo = leaveNo;
    }

    public int getLeaveType() {
        return leaveType;
    }

    public void setLeaveType(int leaveType) {
        this.leaveType = leaveType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @JSONField(format = "yyyy-MM-dd")
    public Date getStarDate() {
        return starDate;
    }

    @JSONField(format = "yyyy-MM-dd")
    public void setStarDate(Date starDate) {
        this.starDate = starDate;
    }

    @JSONField(format = "yyyy-MM-dd")
    public Date getEndDate() {
        return endDate;
    }

    @JSONField(format = "yyyy-MM-dd")
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateDate() {
        return createDate;
    }

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }


    public int getCounselorId() {
        return counselorId;
    }

    public void setCounselorId(int counselorId) {
        this.counselorId = counselorId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getCounselorName() {
        return counselorName;
    }

    public void setCounselorName(String counselorName) {
        this.counselorName = counselorName;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}
